package com.yykj.hospital.server.service;

import com.yykj.common.vo.PageData;
import com.yykj.hospital.client.dto.DoctorArticleDTO;
import com.yykj.hospital.client.dto.DoctorArticleDetailDTO;
import com.yykj.hospital.server.dto.ArticleRollPicListDTO;
import com.yykj.hospital.server.form.ArticleEditForm;
import com.yykj.hospital.server.form.ArticleSearchForm;
import com.yykj.hospital.server.model.entity.DoctorArticle;
import com.yykj.hospital.server.model.entity.DoctorArticleInterest;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ArticleService {
    DoctorArticle editArticle(ArticleEditForm form);

    void deleteArticle(Integer id);

    PageData<DoctorArticleDTO>  listArticle(ArticleSearchForm form);

    DoctorArticle viewArticle(Integer id);

    DoctorArticleDetailDTO viewArticleDetail(Integer id);

    void subscribeDoctorArticle(DoctorArticleInterest doctorArticleInterest);

    void deSubscribeDoctorArticle(DoctorArticleInterest doctorArticleInterest);

    DoctorArticleDetailDTO doctorViewArticleDetail(String doctorId, Integer articleId);

    List<ArticleRollPicListDTO> articleRollPicList(Integer hospitalId);

}
